<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<link rel="shortcut icon" href="image/favicon.ico" />
		<title></title>
	</head>

	<body>
		<button onclick="load('1538235454853', '510122106200001', '2018', '4', '278_1')">刷新测试</button>
		<div id="container" class="container-fluid"></div>

		<script src="lib/requirejs/require.min.js"></script>
		<script src="js/vw.config.require.js"></script>
		<script>
			load("1538235454853", "510122106200001", "2018", "4", "278_1");

			function load(table, catalogID, year, period, userID) {
				console.log("=======开始 load"
				+",table="+table
				+",catalogID="+catalogID
				+",year="+year
				+",period="+period
				+",userID="+userID);
				require(['vw.edittable'], function() {
					$('body').css('height', $(window).height() + "px");
					$("#container").vw_edittable({
						type: "report",
						showNewData: false,
						showErrorlog: false,
						showEdit: false,
						editable: false,
						extrapara: {
							"catalogID": catalogID,
							"userID": userID,
							"period": period,
							"year": year
						},
						$container: $("body"),
						heightDiff: -40,
						dataURL: "http://211.103.218.91:8001/NewService_new/VwService/CollectionManage.asmx/LoadData"
					}).vw_edittable('ajaxLoadReportData', "html/" + table + ".html", table, table, 1);
				});
			}
		</script>
	</body>

</html>